package com.leyou.item.api;

import com.leyou.item.entity.TbBrand;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@RequestMapping("brand")
public interface BrandApi {

    //根据cid获取信息
    @GetMapping("cid/{cid}")
    public List<TbBrand> queryBrandByCid(@PathVariable("cid") Long cid);
    //根据品牌id查询品牌对象
    @GetMapping("/{bid}")
    public TbBrand queryBrandById(@PathVariable("bid")Long bid);
}
